92a7aad4ccf673d0161ce0f6d4d6b7025f67dd08,modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxLocalAdapter.java,GridDhtTxLocalAdapter,addEntry,#number#IgniteTxEntry#,430

Before Change


            IgniteTxEntry entry = txMap.get(e.txKey());

            if (entry != null) {
                entry.op(e.op()); // Absolutely must set operation, as default is DELETE.
                entry.value(e.value(), e.hasWriteValue(), e.hasReadValue());
                entry.entryProcessors(e.entryProcessors());
                entry.ttl(e.ttl());

After Change



            if (existing != null) {
                // Must keep NOOP operation if received READ because it means that the lock was sent to a backup node.
                if (e.op() == READ) {
                    if (existing.op() != NOOP)
                        existing.op(e.op());
                }
                else
                    existing.op(e.op()); // Absolutely must set operation, as default is DELETE.

                existing.value(e.value(), e.hasWriteValue(), e.hasReadValue());
                existing.entryProcessors(e.entryProcessors());